package com.situ.studentmanagement.dao;

import com.situ.studentmanagement.model.Orderone;
import com.situ.studentmanagement.model.Ordertwo;

import java.util.List;

/**
 * Created by baba on 2016/8/3.
 */
public interface OrderMapper {
    int insertOneOrder(Ordertwo ordertwo);

    int inserOrderOne(Orderone orderone);

    List<Ordertwo> selectOneOrder(Long ordernumber);

    void deletone(int goods_id);

    List<Ordertwo> selectAllOrdertwo();


    void setGoodNumber(Long ordernumber, int goodid, int goodNumber);

    Orderone selectThisOrder(Long ordernumber);

    void setFinalPrice(Long ordernumber, int finalPrice);

    void setTime(Long ordernumber, String time);

    void setIsPay(Long ordernumber);

    List<Orderone> seleAllOrderoneByUserId(int userid);

    void setPaytype(Long ordernumber, String userpaytype);

    void deletOneByOrderId(Long ordernumber);

    void deletTwoByOrderId(Long ordernumber);

    void confirmorder(long orderid);

    List<Orderone> selectAllOrderOne();

    Orderone selectAllOrderOneByTime(String time);

    void setispostByOrderid(long orderid);
}
